package com.taijihuabao.modules.model.role.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 角色菜单模型
 *
 * @author Wang
 */
@Data
@ApiModel("角色菜单模型")
public class RoleMenuInfoVO {

    /**
     * 角色主键
     */
    @ApiModelProperty(value = "角色主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 角色编码
     */
    @ApiModelProperty(value = "角色编码")
    private String code;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    private String name;

    /**
     * 角色菜单
     */
    @ApiModelProperty(value = "角色菜单id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private List<Long> menuIds;
}
